package com.lorizz.index.test;

import java.io.File;

import org.apache.commons.io.FileUtils;

public class IndexCleaner {
	
	private String path;

	public void setPath(String path) {
		this.path = path;
	}
	
	public void init() throws Exception {
		File folder = new File(path);
		if (folder.exists() && folder.isDirectory()) {
			FileUtils.deleteDirectory(folder);
		}
	}
	
}
